import java.util.Scanner;
public class 计算奖金2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入当月利润：");
        double I = in.nextInt();
        double P = 0;
        if (I <= 10){
            P = I * 0.1;
        }
        else if (I>10 && I<20){
            P = 1 + (I-10)*0.075;
        }
        else if (I>=20 && I<40){
            P = 1.75 + (I-20)*0.05;
        }
        else if (I>=40 && I<60){
            P = 2.75 + (I-40)*0.03;
        }
        else if (I>=60 && I<100){
            P = 2.75 + 0.6 + (I-60)*0.015;
        }
        else
            P = 2.75 +0.6 + 40*0.015 + (I-100)*0.01;
        System.out.println("求应发放奖金总数为：" + P);
    }
}
